package tt.com.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 订单表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "yx_funeral_order")
public class Order {
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 逝者id
     */
    @TableField(value = "dead_id")
    private String deadId;

    /**
     * 清单号
     */
    @TableField(value = "inventory_number")
    private String inventoryNumber;

    /**
     * 发票号
     */
    @TableField(value = "invoice_number")
    private String invoiceNumber;

    /**
     * 缴费时间
     */
    @TableField(value = "chargeable_time")
    private Date chargeableTime;

    /**
     * 总费用
     */
    @TableField(value = "cost")
    private BigDecimal cost;

    /**
     * 实际费用
     */
    @TableField(value = "fruit_cost")
    private BigDecimal fruitCost;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 创建人
     */
    @TableField(value = "create_user_id")
    private String createUserId;

    /**
     * 最后修改时间
     */
    @TableField(value = "last_update_time")
    private Date lastUpdateTime;

    /**
     * 最后修改人
     */
    @TableField(value = "last_update_user_id")
    private String lastUpdateUserId;

    /**
     * 删除时间
     */
    @TableField(value = "delete_time")
    private Date deleteTime;

    /**
     * 删除人
     */
    @TableField(value = "delete_user_id")
    private String deleteUserId;

    /**
     * 删除状态(0删除 1正常)
     */
    @TableField(value = "data_status")
    private Integer dataStatus;

    /**
     * 组织id
     */
    @TableField(value = "organ_id")
    private String organId;

    /**
     * 订单状态
     */
    @TableField(value = "`status`")
    private Integer status;

    /**
     * 订单类型
     */
    @TableField(value = "`type`")
    private Integer type;

    /**
     * 付款人
     */
    @TableField(value = "payer_name")
    private String payerName;

    /**
     * 业务员id
     */
    @TableField(value = "salesman_id")
    private String salesmanId;

    /**
     * 业务员姓名
     */
    @TableField(value = "salesman_name")
    private String salesmanName;

    /**
     * 惠民补助合计
     */
    @TableField(value = "total_subsidy_price")
    private BigDecimal totalSubsidyPrice;

    /**
     * 合计折扣
     */
    @TableField(value = "total_discount_amount")
    private BigDecimal totalDiscountAmount;

    /**
     * 备注
     */
    @TableField(value = "`comment`")
    private String comment;

    /**
     * 订单号
     */
    @TableField(value = "order_no")
    private String orderNo;

    /**
     * 日结单id
     */
    @TableField(value = "finance_id")
    private String financeId;

    /**
     * 提交汇总
     */
    @TableField(value = "submit_summary")
    private Integer submitSummary;

    /**
     * 提交日期
     */
    @TableField(value = "submit_time")
    private Date submitTime;

    /**
     * 提交用户id
     */
    @TableField(value = "submit_user_id")
    private String submitUserId;

    /**
     * 接收状态
     */
    @TableField(value = "accept_status")
    private String acceptStatus;

    /**
     * 接收日期
     */
    @TableField(value = "accept_time")
    private Date acceptTime;

    /**
     * 接收用户id
     */
    @TableField(value = "accept_user_id")
    private String acceptUserId;

    /**
     * 拒接原因
     */
    @TableField(value = "accept_reject_reason")
    private String acceptRejectReason;

    public static final String COL_ID = "id";

    public static final String COL_DEAD_ID = "dead_id";

    public static final String COL_INVENTORY_NUMBER = "inventory_number";

    public static final String COL_INVOICE_NUMBER = "invoice_number";

    public static final String COL_CHARGEABLE_TIME = "chargeable_time";

    public static final String COL_COST = "cost";

    public static final String COL_FRUIT_COST = "fruit_cost";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_CREATE_USER_ID = "create_user_id";

    public static final String COL_LAST_UPDATE_TIME = "last_update_time";

    public static final String COL_LAST_UPDATE_USER_ID = "last_update_user_id";

    public static final String COL_DELETE_TIME = "delete_time";

    public static final String COL_DELETE_USER_ID = "delete_user_id";

    public static final String COL_DATA_STATUS = "data_status";

    public static final String COL_ORGAN_ID = "organ_id";

    public static final String COL_STATUS = "status";

    public static final String COL_TYPE = "type";

    public static final String COL_PAYER_NAME = "payer_name";

    public static final String COL_SALESMAN_ID = "salesman_id";

    public static final String COL_SALESMAN_NAME = "salesman_name";

    public static final String COL_TOTAL_SUBSIDY_PRICE = "total_subsidy_price";

    public static final String COL_TOTAL_DISCOUNT_AMOUNT = "total_discount_amount";

    public static final String COL_COMMENT = "comment";

    public static final String COL_ORDER_NO = "order_no";

    public static final String COL_FINANCE_ID = "finance_id";

    public static final String COL_SUBMIT_SUMMARY = "submit_summary";

    public static final String COL_SUBMIT_TIME = "submit_time";

    public static final String COL_SUBMIT_USER_ID = "submit_user_id";

    public static final String COL_ACCEPT_STATUS = "accept_status";

    public static final String COL_ACCEPT_TIME = "accept_time";

    public static final String COL_ACCEPT_USER_ID = "accept_user_id";

    public static final String COL_ACCEPT_REJECT_REASON = "accept_reject_reason";
}